import './assets/main.css'
import './styles/index.scss'
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'

/* import the fontawesome core */
import { library } from '@fortawesome/fontawesome-svg-core'

/* import font awesome icon component */
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'

/* import specific icons */
import { fas } from '@fortawesome/free-solid-svg-icons'

/* add icons to the library */
library.add(fas)

// 引入自定义组件
import Icon from './components/Icon/Icon.vue'
import Button from './components/Button/Button.vue'
import Card from './components/Card/Card.vue'
import Dialog from './components/Dialog/Dialog.vue'
import Pager from './components/Pager/Pager.vue'
import Collapse from './components/Collapse/Collapse.vue'
import CollapseItem from './components/Collapse/CollapseItem.vue'
import Tooltip from './components/Tooltip/Tooltip.vue'
import Dropdown from './components/Dropdown/Dropdown.vue'
const app = createApp(App)
// 注册自定义组件
app.component('wl-icon', Icon)
app.component('wl-button', Button)
app.component('wl-card', Card)
app.component('wl-dialog', Dialog)
app.component('wl-pager', Pager)
app.component('wl-collapse', Collapse)
app.component('wl-collapse-item', CollapseItem)
app.component('wl-tooltip', Tooltip)
app.component('wl-dropdown', Dropdown)
app.component('font-awesome-icon', FontAwesomeIcon)

app.use(router)

app.mount('#app')
